/**
 * Created by Hwa on 2017/11/17.
 */
import React from 'react'
import './style.scss'


const NumberDiv = (props)=>{
  const{icon,titleName,number} = props;
  return(
    <div className="number-div-wrapper">
        <img className="nd-img" src={icon}/>
        <div className="nd-title-wrapper">
          <div className="nd-title">{titleName}</div>
          <div className="nd-number">{number}</div>
        </div>
    </div>);
}

NumberDiv.propTypes = {
  icon: React.PropTypes.object,
  titleName:React.PropTypes.string,
};

export default NumberDiv;
